package com.design.yjx.command.simpleremote;

import com.design.yjx.command.common.Command;
import com.design.yjx.command.common.Light;
import com.design.yjx.command.common.LightOnCommand;

/**
 * @author yuanjianxin
 * @date 2017/8/21 14:24
 */
public class Main {
    public static void main(String[] args) {
        Command command = new LightOnCommand(new Light());
        SimpleRemoteControl control = new SimpleRemoteControl();
        control.setSlot(command);
        control.buttonWasPressed();

    }
}
